package com.qfmy.model.vo.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.vo.user
 * @date 2025/9/18
 * @description 用户优惠卷
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserCouponVo {

    @Schema(description = "优惠券主键ID，自增")
    private Integer couponId;

    @Schema(description = "优惠券名称（如“小天才外卖专享券”）")
    private String couponName;

    @Schema(description = "优惠券类型（如“限品类奖券”）")
    private String couponType;

    @Schema(description = "优惠券面额（如5元、1000元）")
    private BigDecimal denomination;

    @Schema(description = "使用门槛（满多少可用，如99元、4000元）")
    private BigDecimal useThreshold;

    @Schema(description = "有效期至（如2025-04-29）")
    private LocalDate expireDate;

    @Schema(description = "优惠券状态：未使用、已使用、已过期")
    private String status;

    @Schema(description = "使用平台限制（如“仅限京东客户端/微信/M版京东”）")
    private String platformLimit;

    @Schema(description = "商品范围限制（如“限部分商品使用”）")
    private String goodsLimit;

    @Schema(description = "券编号（如433548662874）")
    private String couponNo;

    @Schema(description = "配送方式限制（如“普通自提、配送订单可用”）")
    private String deliveryLimit;

    @Schema(description = "是否为新到优惠券（1：是，0：否）")
    private Integer isNew;

}
